/**
 * Created by jean.h.ma on 26/03/2018.
 */

import React from 'react'
import Base from '@codefree/badger/app/components/Base'
import Layout from '@codefree/badger/app/components/Layout'
import Master from '../../components/Master'
import {DataTable} from 'react-component-data-table'

export default class TestDataTable extends Base {
	render() {
		const dataSource = [
			{name: "name1", sex: "male"},
			{name: "name2", sex: "female"}
		];
		const columns = [
			{name: "Name", render: rowData => rowData['name']},
			{name: "Sex", render: rowData => rowData['sex']},
		];
		return (
			<Master>
				<DataTable columns={columns}
						   className="pure-table"
						   dataSource={dataSource}></DataTable>
			</Master>
		);
	}
}